﻿<Window x:Class="BlobExplorer.AddContainer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Add Container" Height="92" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.Background>
            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                <LinearGradientBrush.GradientStops>
                    <GradientStop Offset="0" Color="White"/>
                    <GradientStop Offset="1" Color="AliceBlue"/>
                </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
        </Grid.Background>

        <Label>Name: </Label>
        <TextBox Grid.Column="1" Text="{Binding ContainerName}" Margin="3"/>
        
        <CheckBox Grid.Row="1" IsChecked="{Binding PublicContainer}" Content="Public" FlowDirection="RightToLeft" Margin="3"/>

        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="OK" IsDefault="True" Click="OK_Click" Width="{Binding ElementName=cancel, Path=ActualWidth}" Padding="2" Margin="3"/>
            <Button Content="Cancel" IsCancel="True" x:Name="cancel" Padding="2" Margin="3"/>
        </StackPanel>
        
    </Grid>
</Window>
